include $(TOPDIR)/rules.mk

PKG_NAME:=urbalink-theme
PKG_VERSION:=0.0
PKG_RELEASE:=1
#PKG_BUILD_DEPENDS:=+webif
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk

define Package/urbalink-theme
  SECTION:=admin
  CATEGORY:=Administration
  SUBMENU:=Urbalink Stuff
#  DEPENDS:=+webif
  TITLE:=Urbalink Customization of X-Wrt
  VERSION:=$(PKG_VERSION)-$(PKG_RELEASE)
endef

define Build/Compile
endef

define Package/urbalink-theme/install
#	$(INSTALL_DIR) $(1)/etc/config/
#	$(INSTALL_DATA) ./files/etc/config/* $(1)/etc/config
	$(INSTALL_DIR) $(1)/www/images/
	$(INSTALL_DATA) ./files/www/images/* $(1)/www/images
	$(INSTALL_DIR) $(1)/www/themes/urbalink/
	$(INSTALL_DATA) ./files/www/themes/urbalink/* $(1)/www/themes/urbalink
	$(INSTALL_BIN) ./ipkg/urbalink-themes.postinst $(1)/CONTROL/postinst
endef

$(eval $(call BuildPackage,urbalink-theme))
